import { IPSCode } from './ipscode';
import { PSTextEditorImpl } from './pstext-editor-impl';

export class PSCodeImpl extends PSTextEditorImpl implements IPSCode {
  get codeType(): string {
    return this.M.codeType;
  }

  get cls(): string {
    return 'PSCodeImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'control.editor.IPSCode') return true;
    return super.instanceof(cls);
  }
}
